<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<table class="cntable table table-bordered dataTable table-cargo">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th style="width:80px">主图</th>
			<th style="width:80px">编号</th>
			<th style="width:150px;">商品名称</th>
			<th style="width:120px">销售价格</th>
			<th style="width:120px">商品描述</th>   
			<th style="width:60px">商品分类</th>
			<th style="width:80px;">库存</th>
			<th style="width:80px;">销量</th>
			<th style="width:120px">上架日期</th>			
			<th>备注</th>  
		</tr>
	</thead>
	<tbody>
		<c:forEach var="cargo" items="${cargos}" varStatus="status">
			
			<tr data-id="${cargo.cargoId}">
				<td>${status.index+1}</td>
				<td id="pic" style="padding: 0px;height:60px;width:56px"  data-trigger="hover"  >
	             	<div class="thumbnail" style="margin: 0px">	
	             		<c:if test="${cargo.fileId==null }">
	             			<img src="<c:url value='/images/logo.png'/>" alt="">
	             		</c:if>	
	             		<c:if test="${cargo.fileId!=null }">
	             			<%-- <img src="${tfile:getImageUrl(cargo.fileId)}" style="height:50px;width:60px;" alt=""> --%>
	             			<img name="pictureLoad" data-url="${tfile:getImageUrlStyle(cargo.fileId,'image/resize,w_300')}" src="" style="height:50px;width:60px;" alt="">
	             			
	             			
	             		</c:if>						
						
					</div>
	            </td>
				<td title="${cargo.cargoNo}">${cargo.cargoNo}</td>
				<td>${cargo.cargoName}</td>
				<c:if test="${cargo.minSale==cargo.maxSale}">
					<td> ${cargo.minSale}</td>				
				</c:if>
				<c:if test="${cargo.minSale!=cargo.maxSale}">
					<td>￥ ${cargo.minSale}~~${cargo.maxSale}</td>				
				</c:if>
				<td>${cargo.describes}</td>
				<td>${cargo.categoryName}</td>
				<td style="color:#00E067">${cargo.stockNum}</td>
				<td style="color:#FF2729">${cargo.salesVolume}</td>
				<td style="width:100px">
						<fmt:formatDate value="${cargo.createDate}" type="date" dateStyle="default" pattern="yyyy-MM-dd"/>
				</td>
				<td >${cargo.comment}</td>

			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>